<?php
class A{
    static $name='job';
    public function test(){
      echo  static::$name;
        echo get_class();
    }
    static function test2(){
       echo get_called_class();
    }
}

class B extends A{
    static $name='Tom';
    public function test1(){
     echo  static::$name;
    }
}

$b=new B();
$b->test1();
B::test2();
